#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int t;
    scanf_s("%d", &t);
    while (t--) {
        int n;
        scanf_s("%d", &n);
        if (n == 1) {
            printf("NO\n");
        }
        else {
            printf("YES\n");
        }
    }
    return 0;
}